EndMediaEdits
TheEndMediaEdits
function ends a media-editing session.
pascal OSErr EndMediaEdits (Media theMedia);
theMedia
- Specifies the media for this operation. Your application obtains this media identifier from such Movie Toolbox functions as
NewTrackMedia
andGetTrackMedia
(described on page 2-138 and page 2-190, respectively).DESCRIPTION
You use theEndMediaEdits
function to tell the Movie Toolbox that you are done adding samples to a movie data file. The Movie Toolbox then performs the appropriate processing. For example, for disk-based media, the Movie Toolbox relinquishes write-access to the disk file. You should callEndMediaEdits
only if you successfully started a media-editing session with theBeginMediaEdits
function, which is described in the previous section.ERROR CODES
invalidMedia -2008 This media is corrupted or invalid